package com.newland.starpos.partner.bean.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class UserLoginDTO {

	@Pattern(regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$"
			, message = "手机号格式错误")
	private String phoneNumber;

	@NotBlank(message = "密码不能为空")
	private String password;
	
	private String ipAddress;
	
	private String macAddress;

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}
}
